home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / lib / mlib40d.zoo / diffc next >
Encoding:
Text File  |  1993-10-29  |  8.5 KB  |  327 lines

  1. *** 39.1    1993/10/27 13:40:30
  2. --- utime.c    1993/10/27 15:00:12
  3. ***************
  4. *** 79,94 ****
  5.       settime.acdate = (unsigned short) (actime & 0xFFFF);
  6.       settime.modtime = (unsigned short) ((modtime >> 16) & 0xFFFF);
  7.       settime.moddate = (unsigned short) (modtime & 0xFFFF);
  8.       fh = (int) Fopen(filename, 2);
  9.       if (fh < 0) {
  10.           /* Kludge:  return success for dirs even though we failed */
  11.           if ((fh == -ENOENT) && (Fattrib(filename, 0, 0) == FA_DIR))
  12.               return 0;
  13.           errno = -fh;
  14.           return -1;
  15.       }
  16.   
  17. -     res = -EINVAL;
  18.       if (__mint > 90) {
  19.           if (tset)
  20.               res = Fcntl(fh, (long)&settime, FUTIME);
  21. --- 79,109 ----
  22.       settime.acdate = (unsigned short) (actime & 0xFFFF);
  23.       settime.modtime = (unsigned short) ((modtime >> 16) & 0xFFFF);
  24.       settime.moddate = (unsigned short) (modtime & 0xFFFF);
  25. +     res = -EINVAL;
  26. +     if (__mint > 92) {
  27. +         if (tset)
  28. +             res = Dcntl(FUTIME, (long) filename, (long) &settime);
  29. +         else
  30. +             res = Dcntl(FUTIME, (long) filename, (long) 0);
  31. +     }
  32. +     if (res != -EINVAL) {
  33. +         if (res < 0) {
  34. +             errno = (int) -res;
  35. +             return -1;
  36. +         }
  37. +         return 0;
  38. +     }
  39.       fh = (int) Fopen(filename, 2);
  40.       if (fh < 0) {
  41. + #if 0
  42.           /* Kludge:  return success for dirs even though we failed */
  43.           if ((fh == -ENOENT) && (Fattrib(filename, 0, 0) == FA_DIR))
  44.               return 0;
  45. + #endif
  46.           errno = -fh;
  47.           return -1;
  48.       }
  49.   
  50.       if (__mint > 90) {
  51.           if (tset)
  52.               res = Fcntl(fh, (long)&settime, FUTIME);
  53. *** 39.1    1993/10/27 13:32:26
  54. --- Changelog    1993/10/28 23:19:12
  55. ***************
  56. *** 4,9 ****
  57. --- 4,43 ----
  58.   Changes are listed in *reverse* order, most recent changes being
  59.   first.
  60.   
  61. + PATCHLEVEL40::
  62. + ***** abort.c
  63. + ----------------------------
  64. + revision 39.2    
  65. + date: 1993/10/28 17:54:14;  author: entropy;  state: Exp;  lines: +20 -2
  66. + Fix for the TOS lib, and also remove a POSIX violation.
  67. + =============================================================================
  68. + ***** utime.c
  69. + ----------------------------
  70. + revision 39.2    
  71. + date: 1993/10/27 15:01:02;  author: entropy;  state: Exp;  lines: +16 -1
  72. + Implement the Dcntl() versionof FUTIME in utime().  Comment out the
  73. + kludge for directories in the Fcntl() version.
  74. + =============================================================================
  75. + ***** include/PatchLev.h
  76. + ----------------------------
  77. + revision 39.2    
  78. + date: 1993/10/27 14:20:24;  author: entropy;  state: Exp;  lines: +1 -1
  79. + -
  80. + =============================================================================
  81. + ***** include/support.h
  82. + ----------------------------
  83. + revision 39.2    
  84. + date: 1993/10/27 15:06:44;  author: jrb;  state: Exp;  lines: +2 -2
  85. + Correct the protos for __exit() and _exit().
  86. + =============================================================================
  87. + ***** truncate.c
  88. + ----------------------------
  89. + revision 39.2    
  90. + date: 1993/10/28 17:27:30;  author: entropy;  state: Exp;  lines: +10 -1
  91. + Implement the Dcntl() version of FTRUNCATE in truncate().
  92. + =============================================================================
  93.   PATCHLEVEL39::
  94.   
  95.   ***** include/PatchLev.h
  96. *** 39.1    1993/10/27 13:32:26
  97. --- Files    1993/10/28 18:09:38
  98. ***************
  99. *** 37,45 ****
  100.   wcscpy.c      wcslen.c        wnull.c \
  101.   
  102.   MINTLIB= \
  103. ! Bugs          Changelog        Copyright      Files        GMakefile.16 \
  104. ! GMakefile.32  GNUGPL2        MKLOG      Makefile    Makefile.adm \
  105. ! OChangelog    PatchLev.h    README      Version    alarm.c \
  106.   atexit.c      cfspeed.c        clock.c      close.c    console.c \
  107.   crt0.cpp      crtinit.c        dirent.c      dup.c        exec.c \
  108.   execp.c          fcntl.c        fopenp.c      fork.c    fscanf.c \
  109. --- 37,43 ----
  110.   wcscpy.c      wcslen.c        wnull.c \
  111.   
  112.   MINTLIB= \
  113. ! GMakefile.16  GMakefile.32  GNUGPL2      Makefile    alarm.c \
  114.   atexit.c      cfspeed.c        clock.c      close.c    console.c \
  115.   crt0.cpp      crtinit.c        dirent.c      dup.c        exec.c \
  116.   execp.c          fcntl.c        fopenp.c      fork.c    fscanf.c \
  117. ***************
  118. *** 57,62 ****
  119. --- 55,65 ----
  120.   times.c          truncate.c    ttyname.c      uname.c    unlink.c \
  121.   unx2dos.c     utmp.c        vfork.cpp      wait.c    wait3.c \
  122.   waitpid.c     write.c        wtmp.c \
  123. + MINTLIB_NOCL= \
  124. + Bugs          Changelog        Copyright      Files        MKDIFFS \
  125. + MKLOG          Makefile.adm  OChangelog      PatchLev.h    README \
  126. + Version \
  127.   
  128.   CRUFT= \
  129.   gnuaux.c      gnulib2.c \
  130. *** 39.1    1993/10/27 13:32:26
  131. --- Makefile.adm    1993/10/29 00:31:00
  132. ***************
  133. *** 8,13 ****
  134. --- 8,26 ----
  135.   include Files
  136.   include Version
  137.   
  138. + incdir=/usr/include
  139. + srcdir=/src/mntlib
  140. + dist=/src/mntlib/dist
  141. + c=$(dist)/Changelog.$V.jrb
  142. + m=$(dist)/Changelog.$V
  143. + t=$(dist)/change.tmp
  144. + h=$(dist)/diffh
  145. + s=$(dist)/diffc
  146. + b=$(dist)/diffc.jrb
  147. + f=/tmp/Files.tmp
  148. + r=/tmp/rcsFiles.tmp
  149. + d=/tmp/diffFiles.tmp
  150.   all: nothing
  151.   
  152.   FIXUPCMD=tr ' ' '\012' | sort -u | pr -5 -t -l1 | sed 's/$$/ \\/'
  153. ***************
  154. *** 18,42 ****
  155.   ppfiles:
  156.       chmod u+w Files
  157.       cp Files /tmp
  158. !     echo ""                >  Files
  159. !     echo "COMMON= \\"        >> Files
  160. !     echo $(COMMON) | $(FIXUPCMD)    >> Files
  161. !     echo ""                >> Files
  162. !     echo "MINTLIB= \\"        >> Files
  163. !     echo $(MINTLIB) | $(FIXUPCMD)    >> Files
  164. !     echo ""                >> Files
  165. !     echo "CRUFT= \\"        >> Files
  166. !     echo $(CRUFT) | $(FIXUPCMD)    >> Files
  167. !     echo ""                >> Files
  168.   
  169.   #
  170.   # Compare the Files list to the actual files to catch discrepancies.
  171.   #
  172. - f=/tmp/Files.tmp
  173. - r=/tmp/rcsFiles.tmp
  174. - d=/tmp/diffFiles.tmp
  175.   checkfiles:
  176. !     echo $(COMMON) $(MINTLIB) $(CRUFT) | tr ' ' '\012' \
  177.           | sort -u > $f
  178.       rlog -R RCS/* | sed -e 's;^RCS/;;' -e 's;,v$$;;' > $r
  179.       -diff -u $f $r > $d
  180. --- 31,55 ----
  181.   ppfiles:
  182.       chmod u+w Files
  183.       cp Files /tmp
  184. !     echo ""                    >  Files
  185. !     echo "COMMON= \\"            >> Files
  186. !     echo $(COMMON) | $(FIXUPCMD)        >> Files
  187. !     echo ""                    >> Files
  188. !     echo "MINTLIB= \\"            >> Files
  189. !     echo $(MINTLIB) | $(FIXUPCMD)        >> Files
  190. !     echo ""                    >> Files
  191. !     echo "MINTLIB_NOCL= \\"            >> Files
  192. !     echo $(MINTLIB_NOCL) | $(FIXUPCMD)    >> Files
  193. !     echo ""                    >> Files
  194. !     echo "CRUFT= \\"            >> Files
  195. !     echo $(CRUFT) | $(FIXUPCMD)        >> Files
  196. !     echo ""                    >> Files
  197.   
  198.   #
  199.   # Compare the Files list to the actual files to catch discrepancies.
  200.   #
  201.   checkfiles:
  202. !     echo $(COMMON) $(MINTLIB) $(MINTLIB_NOCL) $(CRUFT) | tr ' ' '\012' \
  203.           | sort -u > $f
  204.       rlog -R RCS/* | sed -e 's;^RCS/;;' -e 's;,v$$;;' > $r
  205.       -diff -u $f $r > $d
  206. ***************
  207. *** 44,54 ****
  208.       less $d
  209.       rm $d
  210.   
  211. - c=/tmp/change.common.tmp
  212. - m=/tmp/change.mint.tmp
  213. - t=/tmp/change.tmp
  214. - incdir=/usr/include
  215. - srcdir=/src/mntlib
  216.   changelogs:
  217.       rlog -r`expr $V - 1`.2:$V.1 $(COMMON) | MKLOG \
  218.           | sed 's;DIRECTORY_NAME/;;' > $c
  219. --- 57,62 ----
  220. ***************
  221. *** 71,91 ****
  222.               < $m > $t
  223.       mv $t $m
  224.   
  225. - h=/tmp/diffh
  226. - s=/tmp/diffc
  227. - b=/tmp/diffc.jrb
  228.   distrib:
  229. !     MKDIFFS `expr $V - 1` $(COMMON) > $b
  230.       cp $b $s
  231. !     MKDIFFS `expr $V - 1` $(MINTLIB) >> $s
  232.       for dir in crlf lattice purec purec/unixname sozobon ;\
  233.       do \
  234. !         MKDIFFS `expr $V - 1` $$dir/RCS/* >> $s ; \
  235.       done
  236.       rm -f $h
  237.       cd /usr/include ; for dir in . sys ;\
  238.       do \
  239. !         $(srcdir)/MKDIFFS `expr $V - 1` $$dir/RCS/* >> $h ; \
  240.       done
  241.   
  242.       
  243. --- 79,97 ----
  244.               < $m > $t
  245.       mv $t $m
  246.   
  247.   distrib:
  248. !     MKDIFFS `expr $V - 1` $(dist)/src $(COMMON) > $b
  249.       cp $b $s
  250. !     MKDIFFS `expr $V - 1` $(dist)/src $(MINTLIB_NOCL) >> $s
  251. !     MKDIFFS `expr $V - 1` $(dist)/src $(MINTLIB) >> $s
  252.       for dir in crlf lattice purec purec/unixname sozobon ;\
  253.       do \
  254. !           MKDIFFS `expr $V - 1` $(dist)/src $$dir/RCS/* >> $s ; \
  255.       done
  256.       rm -f $h
  257.       cd /usr/include ; for dir in . sys ;\
  258.       do \
  259. !           $(srcdir)/MKDIFFS `expr $V - 1` $(dist)/include $$dir/RCS/* >> $h ; \
  260.       done
  261.   
  262.       
  263. *** 39.1    1993/10/27 13:32:26
  264. --- PatchLev.h    1993/10/27 14:19:34
  265. ***************
  266. *** 3,6 ****
  267.    *    directory.
  268.    */
  269.   
  270. ! #define PatchLevel "39"
  271. --- 3,6 ----
  272.    *    directory.
  273.    */
  274.   
  275. ! #define PatchLevel "40"
  276. *** 39.1    1993/10/27 13:32:26
  277. --- Version    1993/10/27 14:19:18
  278. ***************
  279. *** 1 ****
  280. ! V=39
  281. --- 1 ----
  282. ! V=40
  283. *** 39.1    1993/10/27 13:40:30
  284. --- truncate.c    1993/10/28 17:25:46
  285. ***************
  286. *** 35,47 ****
  287.     char filename[PATH_MAX];
  288.   
  289.     (void) _unx2dos (_filename, filename);
  290.     fh = (int)Fopen (filename, 2);
  291.     if (fh < 0)
  292.       {
  293.         errno = -fh;
  294.         return -1;
  295.       }
  296. -   res = -EINVAL;
  297.     if (__mint > 90)
  298.       res = Fcntl (fh, (long) &length, FTRUNCATE);
  299.     Fclose (fh);
  300. --- 35,56 ----
  301.     char filename[PATH_MAX];
  302.   
  303.     (void) _unx2dos (_filename, filename);
  304. +   res = -EINVAL;
  305. +   if (__mint > 92)
  306. +     {
  307. +       res = Dcntl(FTRUNCATE, (long) filename, (long) &length);
  308. +       if (res != -EINVAL)
  309. +         {
  310. +           errno = (int) -res;
  311. +           return -1;
  312. +     }
  313. +     }
  314.     fh = (int)Fopen (filename, 2);
  315.     if (fh < 0)
  316.       {
  317.         errno = -fh;
  318.         return -1;
  319.       }
  320.     if (__mint > 90)
  321.       res = Fcntl (fh, (long) &length, FTRUNCATE);
  322.     Fclose (fh);
  323.